<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>lacewing.moo.packetloaders.server</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="lacewing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://mp2.dk">Python Lacewing Library</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="lacewing-module.html">Package&nbsp;lacewing</a> ::
        <a href="lacewing.moo-module.html">Package&nbsp;moo</a> ::
        <a href="lacewing.moo.packetloaders-module.html">Package&nbsp;packetloaders</a> ::
        Module&nbsp;server
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="lacewing.moo.packetloaders.server-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="lacewing.moo.packetloaders.server-module.html">Module lacewing.moo.packetloaders.server</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment"># Copyright (c) 2011 Mathias Kaerlev.</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment"># See LICENSE for details.</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">struct</tt> <tt class="py-keyword">import</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">,</tt> <tt class="py-name">pack</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package lacewing=lacewing-module.html"><a title="lacewing" class="py-name" href="#" onclick="return doclink('link-0', 'lacewing', 'link-0');">lacewing</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Package lacewing.moo=lacewing.moo-module.html"><a title="lacewing.moo" class="py-name" href="#" onclick="return doclink('link-1', 'moo', 'link-1');">moo</a></tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Package lacewing.moo.packetloaders=lacewing.moo.packetloaders-module.html,Package lacewing.packetloaders=lacewing.packetloaders-module.html"><a title="lacewing.moo.packetloaders
lacewing.packetloaders" class="py-name" href="#" onclick="return doclink('link-2', 'packetloaders', 'link-2');">packetloaders</a></tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Module lacewing.moo.packetloaders.common=lacewing.moo.packetloaders.common-module.html,Module lacewing.packetloaders.common=lacewing.packetloaders.common-module.html"><a title="lacewing.moo.packetloaders.common
lacewing.packetloaders.common" class="py-name" href="#" onclick="return doclink('link-3', 'common', 'link-3');">common</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">(</tt><tt id="link-4" class="py-name" targets="Function lacewing.moo.packetloaders.common.unpack_string()=lacewing.moo.packetloaders.common-module.html#unpack_string"><a title="lacewing.moo.packetloaders.common.unpack_string" class="py-name" href="#" onclick="return doclink('link-4', 'unpack_string', 'link-4');">unpack_string</a></tt><tt class="py-op">,</tt> <tt class="py-name">_MooLoader</tt><tt class="py-op">,</tt>  </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line">    <tt class="py-name">_ChannelMixin</tt><tt class="py-op">,</tt> <tt class="py-name">_ConnectionMixin</tt><tt class="py-op">)</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-5" class="py-name"><a title="lacewing" class="py-name" href="#" onclick="return doclink('link-5', 'lacewing', 'link-0');">lacewing</a></tt><tt class="py-op">.</tt><tt id="link-6" class="py-name"><a title="lacewing.moo" class="py-name" href="#" onclick="return doclink('link-6', 'moo', 'link-1');">moo</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name"><a title="lacewing.moo.packetloaders
lacewing.packetloaders" class="py-name" href="#" onclick="return doclink('link-7', 'packetloaders', 'link-2');">packetloaders</a></tt><tt class="py-op">.</tt><tt id="link-8" class="py-name" targets="Variable lacewing.moo.packetloaders.client.ClientMessage.message=lacewing.moo.packetloaders.client.ClientMessage-class.html#message,Variable lacewing.moo.packetloaders.client.PrivateMessage.message=lacewing.moo.packetloaders.client.PrivateMessage-class.html#message,Variable lacewing.moo.packetloaders.client.ToChannelMessage.message=lacewing.moo.packetloaders.client.ToChannelMessage-class.html#message,Module lacewing.moo.packetloaders.message=lacewing.moo.packetloaders.message-module.html,Variable lacewing.moo.packetloaders.server.FromChannelMessage.message=lacewing.moo.packetloaders.server.FromChannelMessage-class.html#message"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-8', 'message', 'link-8');">message</a></tt> <tt class="py-keyword">import</tt> <tt id="link-9" class="py-name" targets="Class lacewing.moo.packetloaders.message.Message=lacewing.moo.packetloaders.message.Message-class.html"><a title="lacewing.moo.packetloaders.message.Message" class="py-name" href="#" onclick="return doclink('link-9', 'Message', 'link-9');">Message</a></tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"> </tt>
<a name="MOTD"></a><div id="MOTD-def"><a name="L11"></a><tt class="py-lineno"> 11</tt> <a class="py-toggle" href="#" id="MOTD-toggle" onclick="return toggle('MOTD');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.MOTD-class.html">MOTD</a><tt class="py-op">(</tt><tt class="py-base-class">_MooLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MOTD-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="MOTD-expanded"><a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line">    <tt id="link-10" class="py-name" targets="Variable lacewing.moo.client.MooClientProtocol.motd=lacewing.moo.client.MooClientProtocol-class.html#motd,Variable lacewing.moo.packetloaders.server.MOTD.motd=lacewing.moo.packetloaders.server.MOTD-class.html#motd,Variable lacewing.moo.server.MooServerFactory.motd=lacewing.moo.server.MooServerFactory-class.html#motd"><a title="lacewing.moo.client.MooClientProtocol.motd
lacewing.moo.packetloaders.server.MOTD.motd
lacewing.moo.server.MooServerFactory.motd" class="py-name" href="#" onclick="return doclink('link-10', 'motd', 'link-10');">motd</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line">     </tt>
<a name="MOTD._load"></a><div id="MOTD._load-def"><a name="L14"></a><tt class="py-lineno"> 14</tt> <a class="py-toggle" href="#" id="MOTD._load-toggle" onclick="return toggle('MOTD._load');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.MOTD-class.html#_load">_load</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MOTD._load-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MOTD._load-expanded"><a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line">        <tt class="py-name">motdSize</tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;I'</tt><tt class="py-op">,</tt> <tt id="link-11" class="py-name" targets="Method lacewing.bytereader.ByteReader.data()=lacewing.bytereader.ByteReader-class.html#data"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-11', 'data', 'link-11');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name"><a title="lacewing.moo.client.MooClientProtocol.motd
lacewing.moo.packetloaders.server.MOTD.motd
lacewing.moo.server.MooServerFactory.motd" class="py-name" href="#" onclick="return doclink('link-12', 'motd', 'link-10');">motd</a></tt> <tt class="py-op">=</tt> <tt id="link-13" class="py-name"><a title="lacewing.moo.packetloaders.common.unpack_string" class="py-name" href="#" onclick="return doclink('link-13', 'unpack_string', 'link-4');">unpack_string</a></tt><tt class="py-op">(</tt><tt id="link-14" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-14', 'data', 'link-11');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">motdSize</tt><tt class="py-op">,</tt> <tt class="py-number">4</tt><tt class="py-op">)</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-number">4</tt> <tt class="py-op">+</tt> <tt class="py-name">motdSize</tt> </tt>
</div><a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line">         </tt>
<a name="MOTD.generate"></a><div id="MOTD.generate-def"><a name="L19"></a><tt class="py-lineno"> 19</tt> <a class="py-toggle" href="#" id="MOTD.generate-toggle" onclick="return toggle('MOTD.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.MOTD-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MOTD.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MOTD.generate-expanded"><a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;I'</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-15" class="py-name"><a title="lacewing.moo.client.MooClientProtocol.motd
lacewing.moo.packetloaders.server.MOTD.motd
lacewing.moo.server.MooServerFactory.motd" class="py-name" href="#" onclick="return doclink('link-15', 'motd', 'link-10');">motd</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-16" class="py-name"><a title="lacewing.moo.client.MooClientProtocol.motd
lacewing.moo.packetloaders.server.MOTD.motd
lacewing.moo.server.MooServerFactory.motd" class="py-name" href="#" onclick="return doclink('link-16', 'motd', 'link-10');">motd</a></tt> </tt>
</div></div><a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"> </tt>
<a name="AssignedID"></a><div id="AssignedID-def"><a name="L22"></a><tt class="py-lineno"> 22</tt> <a class="py-toggle" href="#" id="AssignedID-toggle" onclick="return toggle('AssignedID');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.AssignedID-class.html">AssignedID</a><tt class="py-op">(</tt><tt class="py-base-class">_MooLoader</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ConnectionMixin</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="AssignedID-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="AssignedID-expanded"><a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line">    <tt id="link-17" class="py-name" targets="Variable lacewing.moo.packetloaders.client.SetName.majorVersion=lacewing.moo.packetloaders.client.SetName-class.html#majorVersion,Variable lacewing.moo.packetloaders.server.AssignedID.majorVersion=lacewing.moo.packetloaders.server.AssignedID-class.html#majorVersion"><a title="lacewing.moo.packetloaders.client.SetName.majorVersion
lacewing.moo.packetloaders.server.AssignedID.majorVersion" class="py-name" href="#" onclick="return doclink('link-17', 'majorVersion', 'link-17');">majorVersion</a></tt> <tt class="py-op">=</tt> <tt class="py-number">3</tt> <tt class="py-comment"># don't want our user to</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line">    <tt id="link-18" class="py-name" targets="Variable lacewing.moo.packetloaders.client.SetName.minorVersion=lacewing.moo.packetloaders.client.SetName-class.html#minorVersion,Variable lacewing.moo.packetloaders.server.AssignedID.minorVersion=lacewing.moo.packetloaders.server.AssignedID-class.html#minorVersion"><a title="lacewing.moo.packetloaders.client.SetName.minorVersion
lacewing.moo.packetloaders.server.AssignedID.minorVersion" class="py-name" href="#" onclick="return doclink('link-18', 'minorVersion', 'link-18');">minorVersion</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> <tt class="py-comment"># fill these in</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">    <tt id="link-19" class="py-name" targets="Variable lacewing.moo.packetloaders.client.PrivateMessage.playerId=lacewing.moo.packetloaders.client.PrivateMessage-class.html#playerId,Variable lacewing.moo.packetloaders.server.AssignedID.playerId=lacewing.moo.packetloaders.server.AssignedID-class.html#playerId,Variable lacewing.moo.packetloaders.server.ChannelJoined.playerId=lacewing.moo.packetloaders.server.ChannelJoined-class.html#playerId,Variable lacewing.moo.packetloaders.server.FromChannelMessage.playerId=lacewing.moo.packetloaders.server.FromChannelMessage-class.html#playerId,Variable lacewing.moo.packetloaders.server.PlayerChanged.playerId=lacewing.moo.packetloaders.server.PlayerChanged-class.html#playerId,Variable lacewing.moo.packetloaders.server.PlayerLeft.playerId=lacewing.moo.packetloaders.server.PlayerLeft-class.html#playerId,Variable lacewing.packetloaders.server.Response.playerId=lacewing.packetloaders.server.Response-class.html#playerId"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-19', 'playerId', 'link-19');">playerId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"> </tt>
<a name="AssignedID._load"></a><div id="AssignedID._load-def"><a name="L27"></a><tt class="py-lineno"> 27</tt> <a class="py-toggle" href="#" id="AssignedID._load-toggle" onclick="return toggle('AssignedID._load');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.AssignedID-class.html#_load">_load</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="AssignedID._load-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AssignedID._load-expanded"><a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-20" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.majorVersion
lacewing.moo.packetloaders.server.AssignedID.majorVersion" class="py-name" href="#" onclick="return doclink('link-20', 'majorVersion', 'link-17');">majorVersion</a></tt><tt class="py-op">,</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-21" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.minorVersion
lacewing.moo.packetloaders.server.AssignedID.minorVersion" class="py-name" href="#" onclick="return doclink('link-21', 'minorVersion', 'link-18');">minorVersion</a></tt><tt class="py-op">,</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-22" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-22', 'playerId', 'link-19');">playerId</a></tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;BBI'</tt><tt class="py-op">,</tt> <tt id="link-23" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-23', 'data', 'link-11');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-number">6</tt> </tt>
</div><a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line">         </tt>
<a name="AssignedID.generate"></a><div id="AssignedID.generate-def"><a name="L33"></a><tt class="py-lineno"> 33</tt> <a class="py-toggle" href="#" id="AssignedID.generate-toggle" onclick="return toggle('AssignedID.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.AssignedID-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="AssignedID.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AssignedID.generate-expanded"><a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;BBI'</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-24" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.majorVersion
lacewing.moo.packetloaders.server.AssignedID.majorVersion" class="py-name" href="#" onclick="return doclink('link-24', 'majorVersion', 'link-17');">majorVersion</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-25" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.minorVersion
lacewing.moo.packetloaders.server.AssignedID.minorVersion" class="py-name" href="#" onclick="return doclink('link-25', 'minorVersion', 'link-18');">minorVersion</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-26" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-26', 'playerId', 'link-19');">playerId</a></tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line"> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line"> </tt>
<a name="_PlayerCommon"></a><div id="_PlayerCommon-def"><a name="L38"></a><tt class="py-lineno"> 38</tt> <a class="py-toggle" href="#" id="_PlayerCommon-toggle" onclick="return toggle('_PlayerCommon');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server._PlayerCommon-class.html">_PlayerCommon</a><tt class="py-op">(</tt><tt class="py-base-class">_MooLoader</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ChannelMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ConnectionMixin</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_PlayerCommon-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_PlayerCommon-expanded"><a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">    <tt id="link-27" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-27', 'playerId', 'link-19');">playerId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">    <tt id="link-28" class="py-name" targets="Variable lacewing.moo.packetloaders.client.LeaveChannel.channelId=lacewing.moo.packetloaders.client.LeaveChannel-class.html#channelId,Variable lacewing.moo.packetloaders.client.PrivateMessage.channelId=lacewing.moo.packetloaders.client.PrivateMessage-class.html#channelId,Variable lacewing.moo.packetloaders.client.ToChannelMessage.channelId=lacewing.moo.packetloaders.client.ToChannelMessage-class.html#channelId,Variable lacewing.moo.packetloaders.server.ChannelJoined.channelId=lacewing.moo.packetloaders.server.ChannelJoined-class.html#channelId,Variable lacewing.moo.packetloaders.server.FromChannelMessage.channelId=lacewing.moo.packetloaders.server.FromChannelMessage-class.html#channelId,Variable lacewing.moo.packetloaders.server.PlayerLeft.channelId=lacewing.moo.packetloaders.server.PlayerLeft-class.html#channelId"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-28', 'channelId', 'link-28');">channelId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">    <tt id="link-29" class="py-name" targets="Variable lacewing.moo.client.Channel.masterId=lacewing.moo.client.Channel-class.html#masterId,Variable lacewing.moo.packetloaders.server.ChannelJoined.masterId=lacewing.moo.packetloaders.server.ChannelJoined-class.html#masterId,Variable lacewing.moo.packetloaders.server.PlayerLeft.masterId=lacewing.moo.packetloaders.server.PlayerLeft-class.html#masterId"><a title="lacewing.moo.client.Channel.masterId
lacewing.moo.packetloaders.server.ChannelJoined.masterId
lacewing.moo.packetloaders.server.PlayerLeft.masterId" class="py-name" href="#" onclick="return doclink('link-29', 'masterId', 'link-29');">masterId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">    <tt id="link-30" class="py-name" targets="Variable lacewing.moo.packetloaders.client.SetName.playerName=lacewing.moo.packetloaders.client.SetName-class.html#playerName,Variable lacewing.moo.packetloaders.server.ChannelJoined.playerName=lacewing.moo.packetloaders.server.ChannelJoined-class.html#playerName,Variable lacewing.moo.packetloaders.server.PlayerChanged.playerName=lacewing.moo.packetloaders.server.PlayerChanged-class.html#playerName"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-30', 'playerName', 'link-30');">playerName</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">    <tt id="link-31" class="py-name" targets="Variable lacewing.moo.packetloaders.server.ChannelJoined.playerIp=lacewing.moo.packetloaders.server.ChannelJoined-class.html#playerIp"><a title="lacewing.moo.packetloaders.server.ChannelJoined.playerIp" class="py-name" href="#" onclick="return doclink('link-31', 'playerIp', 'link-31');">playerIp</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line"> </tt>
<a name="_PlayerCommon._load"></a><div id="_PlayerCommon._load-def"><a name="L45"></a><tt class="py-lineno"> 45</tt> <a class="py-toggle" href="#" id="_PlayerCommon._load-toggle" onclick="return toggle('_PlayerCommon._load');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server._PlayerCommon-class.html#_load">_load</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_PlayerCommon._load-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_PlayerCommon._load-expanded"><a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-32" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-32', 'playerId', 'link-19');">playerId</a></tt><tt class="py-op">,</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-33" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-33', 'channelId', 'link-28');">channelId</a></tt><tt class="py-op">,</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="lacewing.moo.client.Channel.masterId
lacewing.moo.packetloaders.server.ChannelJoined.masterId
lacewing.moo.packetloaders.server.PlayerLeft.masterId" class="py-name" href="#" onclick="return doclink('link-34', 'masterId', 'link-29');">masterId</a></tt><tt class="py-op">,</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">        <tt class="py-name">playerNameSize</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;IIII'</tt><tt class="py-op">,</tt> <tt id="link-35" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-35', 'data', 'link-11');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-36" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-36', 'playerName', 'link-30');">playerName</a></tt> <tt class="py-op">=</tt> <tt id="link-37" class="py-name"><a title="lacewing.moo.packetloaders.common.unpack_string" class="py-name" href="#" onclick="return doclink('link-37', 'unpack_string', 'link-4');">unpack_string</a></tt><tt class="py-op">(</tt><tt id="link-38" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-38', 'data', 'link-11');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">playerNameSize</tt><tt class="py-op">,</tt> <tt class="py-number">16</tt><tt class="py-op">)</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">        <tt class="py-name">offset</tt> <tt class="py-op">=</tt> <tt class="py-number">16</tt> <tt class="py-op">+</tt> <tt class="py-name">playerNameSize</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">        <tt class="py-name">playerIpSize</tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;I'</tt><tt class="py-op">,</tt> <tt id="link-39" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-39', 'data', 'link-11');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">offset</tt><tt class="py-op">)</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">        <tt class="py-name">offset</tt> <tt class="py-op">+=</tt> <tt class="py-number">4</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name"><a title="lacewing.moo.packetloaders.server.ChannelJoined.playerIp" class="py-name" href="#" onclick="return doclink('link-40', 'playerIp', 'link-31');">playerIp</a></tt> <tt class="py-op">=</tt> <tt id="link-41" class="py-name"><a title="lacewing.moo.packetloaders.common.unpack_string" class="py-name" href="#" onclick="return doclink('link-41', 'unpack_string', 'link-4');">unpack_string</a></tt><tt class="py-op">(</tt><tt id="link-42" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-42', 'data', 'link-11');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">playerIpSize</tt><tt class="py-op">,</tt> <tt class="py-name">offset</tt><tt class="py-op">)</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        <tt class="py-name">offset</tt> <tt class="py-op">+=</tt> <tt class="py-name">playerIpSize</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">offset</tt> </tt>
</div><a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">         </tt>
<a name="_PlayerCommon.generate"></a><div id="_PlayerCommon.generate-def"><a name="L58"></a><tt class="py-lineno"> 58</tt> <a class="py-toggle" href="#" id="_PlayerCommon.generate-toggle" onclick="return toggle('_PlayerCommon.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server._PlayerCommon-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_PlayerCommon.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_PlayerCommon.generate-expanded"><a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">''</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-op">[</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">            <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;IIII'</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-43" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-43', 'playerId', 'link-19');">playerId</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-44" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-44', 'channelId', 'link-28');">channelId</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-45" class="py-name"><a title="lacewing.moo.client.Channel.masterId
lacewing.moo.packetloaders.server.ChannelJoined.masterId
lacewing.moo.packetloaders.server.PlayerLeft.masterId" class="py-name" href="#" onclick="return doclink('link-45', 'masterId', 'link-29');">masterId</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">            <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-46" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-46', 'playerName', 'link-30');">playerName</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-47" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-47', 'playerName', 'link-30');">playerName</a></tt><tt class="py-op">,</tt> <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;I'</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-48" class="py-name"><a title="lacewing.moo.packetloaders.server.ChannelJoined.playerIp" class="py-name" href="#" onclick="return doclink('link-48', 'playerIp', 'link-31');">playerIp</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-49" class="py-name"><a title="lacewing.moo.packetloaders.server.ChannelJoined.playerIp" class="py-name" href="#" onclick="return doclink('link-49', 'playerIp', 'link-31');">playerIp</a></tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">        <tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line"> </tt>
<a name="PlayerExists"></a><div id="PlayerExists-def"><a name="L65"></a><tt class="py-lineno"> 65</tt> <a class="py-toggle" href="#" id="PlayerExists-toggle" onclick="return toggle('PlayerExists');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.PlayerExists-class.html">PlayerExists</a><tt class="py-op">(</tt><tt class="py-base-class">_PlayerCommon</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PlayerExists-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="PlayerExists-expanded"><a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line"> </tt>
<a name="PlayerJoined"></a><div id="PlayerJoined-def"><a name="L68"></a><tt class="py-lineno"> 68</tt> <a class="py-toggle" href="#" id="PlayerJoined-toggle" onclick="return toggle('PlayerJoined');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.PlayerJoined-class.html">PlayerJoined</a><tt class="py-op">(</tt><tt class="py-base-class">_PlayerCommon</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PlayerJoined-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="PlayerJoined-expanded"><a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line"> </tt>
<a name="PlayerLeft"></a><div id="PlayerLeft-def"><a name="L71"></a><tt class="py-lineno"> 71</tt> <a class="py-toggle" href="#" id="PlayerLeft-toggle" onclick="return toggle('PlayerLeft');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.PlayerLeft-class.html">PlayerLeft</a><tt class="py-op">(</tt><tt class="py-base-class">_MooLoader</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ChannelMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ConnectionMixin</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PlayerLeft-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="PlayerLeft-expanded"><a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">    <tt id="link-50" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-50', 'playerId', 'link-19');">playerId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">    <tt id="link-51" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-51', 'channelId', 'link-28');">channelId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">    <tt id="link-52" class="py-name"><a title="lacewing.moo.client.Channel.masterId
lacewing.moo.packetloaders.server.ChannelJoined.masterId
lacewing.moo.packetloaders.server.PlayerLeft.masterId" class="py-name" href="#" onclick="return doclink('link-52', 'masterId', 'link-29');">masterId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line"> </tt>
<a name="PlayerLeft._load"></a><div id="PlayerLeft._load-def"><a name="L76"></a><tt class="py-lineno"> 76</tt> <a class="py-toggle" href="#" id="PlayerLeft._load-toggle" onclick="return toggle('PlayerLeft._load');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.PlayerLeft-class.html#_load">_load</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PlayerLeft._load-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PlayerLeft._load-expanded"><a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-53" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-53', 'playerId', 'link-19');">playerId</a></tt><tt class="py-op">,</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-54" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-54', 'channelId', 'link-28');">channelId</a></tt><tt class="py-op">,</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-55" class="py-name"><a title="lacewing.moo.client.Channel.masterId
lacewing.moo.packetloaders.server.ChannelJoined.masterId
lacewing.moo.packetloaders.server.PlayerLeft.masterId" class="py-name" href="#" onclick="return doclink('link-55', 'masterId', 'link-29');">masterId</a></tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;III'</tt><tt class="py-op">,</tt> <tt id="link-56" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-56', 'data', 'link-11');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-number">12</tt> </tt>
</div><a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">         </tt>
<a name="PlayerLeft.generate"></a><div id="PlayerLeft.generate-def"><a name="L82"></a><tt class="py-lineno"> 82</tt> <a class="py-toggle" href="#" id="PlayerLeft.generate-toggle" onclick="return toggle('PlayerLeft.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.PlayerLeft-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PlayerLeft.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PlayerLeft.generate-expanded"><a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">''</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-op">[</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">            <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;III'</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-57" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-57', 'playerId', 'link-19');">playerId</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-58" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-58', 'channelId', 'link-28');">channelId</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-59" class="py-name"><a title="lacewing.moo.client.Channel.masterId
lacewing.moo.packetloaders.server.ChannelJoined.masterId
lacewing.moo.packetloaders.server.PlayerLeft.masterId" class="py-name" href="#" onclick="return doclink('link-59', 'masterId', 'link-29');">masterId</a></tt><tt class="py-op">)</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">        <tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line"> </tt>
<a name="PlayerChanged"></a><div id="PlayerChanged-def"><a name="L87"></a><tt class="py-lineno"> 87</tt> <a class="py-toggle" href="#" id="PlayerChanged-toggle" onclick="return toggle('PlayerChanged');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.PlayerChanged-class.html">PlayerChanged</a><tt class="py-op">(</tt><tt class="py-base-class">_MooLoader</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ConnectionMixin</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PlayerChanged-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="PlayerChanged-expanded"><a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">    <tt id="link-60" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-60', 'playerId', 'link-19');">playerId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">    <tt id="link-61" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-61', 'playerName', 'link-30');">playerName</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line"> </tt>
<a name="PlayerChanged._load"></a><div id="PlayerChanged._load-def"><a name="L91"></a><tt class="py-lineno"> 91</tt> <a class="py-toggle" href="#" id="PlayerChanged._load-toggle" onclick="return toggle('PlayerChanged._load');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.PlayerChanged-class.html#_load">_load</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PlayerChanged._load-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PlayerChanged._load-expanded"><a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-62" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-62', 'playerId', 'link-19');">playerId</a></tt><tt class="py-op">,</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">        <tt class="py-name">playerNameSize</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;II'</tt><tt class="py-op">,</tt> <tt id="link-63" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-63', 'data', 'link-11');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-64" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-64', 'playerName', 'link-30');">playerName</a></tt> <tt class="py-op">=</tt> <tt id="link-65" class="py-name"><a title="lacewing.moo.packetloaders.common.unpack_string" class="py-name" href="#" onclick="return doclink('link-65', 'unpack_string', 'link-4');">unpack_string</a></tt><tt class="py-op">(</tt><tt id="link-66" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-66', 'data', 'link-11');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">playerNameSize</tt><tt class="py-op">,</tt> <tt class="py-number">8</tt><tt class="py-op">)</tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">        <tt class="py-name">offset</tt> <tt class="py-op">=</tt> <tt class="py-number">8</tt> <tt class="py-op">+</tt> <tt class="py-name">playerNameSize</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">        <tt class="py-name">otherPlayerId</tt><tt class="py-op">,</tt> <tt class="py-name">otherNameSize</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;II'</tt><tt class="py-op">,</tt> <tt id="link-67" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-67', 'data', 'link-11');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">offset</tt><tt class="py-op">)</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">        <tt class="py-name">offset</tt> <tt class="py-op">+=</tt> <tt class="py-number">8</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">        <tt class="py-name">otherPlayerName</tt> <tt class="py-op">=</tt> <tt id="link-68" class="py-name"><a title="lacewing.moo.packetloaders.common.unpack_string" class="py-name" href="#" onclick="return doclink('link-68', 'unpack_string', 'link-4');">unpack_string</a></tt><tt class="py-op">(</tt><tt id="link-69" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-69', 'data', 'link-11');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">otherNameSize</tt><tt class="py-op">,</tt> <tt class="py-name">offset</tt><tt class="py-op">)</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">        <tt class="py-name">offset</tt> <tt class="py-op">+=</tt> <tt class="py-name">otherNameSize</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-70" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-70', 'playerName', 'link-30');">playerName</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">otherPlayerName</tt> <tt class="py-keyword">or</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-71" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-71', 'playerId', 'link-19');">playerId</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">otherPlayerId</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">NotImplementedError</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">             </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">offset</tt> </tt>
</div><a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">         </tt>
<a name="PlayerChanged.generate"></a><div id="PlayerChanged.generate-def"><a name="L106"></a><tt class="py-lineno">106</tt> <a class="py-toggle" href="#" id="PlayerChanged.generate-toggle" onclick="return toggle('PlayerChanged.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.PlayerChanged-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PlayerChanged.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PlayerChanged.generate-expanded"><a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">''</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-op">[</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">            <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;II'</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-72" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-72', 'playerId', 'link-19');">playerId</a></tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-73" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-73', 'playerName', 'link-30');">playerName</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-74" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-74', 'playerName', 'link-30');">playerName</a></tt><tt class="py-op">,</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">            <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;II'</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-75" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-75', 'playerId', 'link-19');">playerId</a></tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-76" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-76', 'playerName', 'link-30');">playerName</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-77" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-77', 'playerName', 'link-30');">playerName</a></tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">        <tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line"> </tt>
<a name="ChannelJoined"></a><div id="ChannelJoined-def"><a name="L112"></a><tt class="py-lineno">112</tt> <a class="py-toggle" href="#" id="ChannelJoined-toggle" onclick="return toggle('ChannelJoined');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.ChannelJoined-class.html">ChannelJoined</a><tt class="py-op">(</tt><tt class="py-base-class">_MooLoader</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ChannelMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ConnectionMixin</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ChannelJoined-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ChannelJoined-expanded"><a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">    <tt id="link-78" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-78', 'playerId', 'link-19');">playerId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">    <tt id="link-79" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-79', 'channelId', 'link-28');">channelId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">    <tt id="link-80" class="py-name"><a title="lacewing.moo.client.Channel.masterId
lacewing.moo.packetloaders.server.ChannelJoined.masterId
lacewing.moo.packetloaders.server.PlayerLeft.masterId" class="py-name" href="#" onclick="return doclink('link-80', 'masterId', 'link-29');">masterId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">    <tt id="link-81" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-81', 'playerName', 'link-30');">playerName</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">    <tt id="link-82" class="py-name"><a title="lacewing.moo.packetloaders.server.ChannelJoined.playerIp" class="py-name" href="#" onclick="return doclink('link-82', 'playerIp', 'link-31');">playerIp</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">    <tt id="link-83" class="py-name" targets="Variable lacewing.moo.packetloaders.client.JoinChannel.channelName=lacewing.moo.packetloaders.client.JoinChannel-class.html#channelName,Variable lacewing.moo.packetloaders.server.ChannelJoined.channelName=lacewing.moo.packetloaders.server.ChannelJoined-class.html#channelName"><a title="lacewing.moo.packetloaders.client.JoinChannel.channelName
lacewing.moo.packetloaders.server.ChannelJoined.channelName" class="py-name" href="#" onclick="return doclink('link-83', 'channelName', 'link-83');">channelName</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line"> </tt>
<a name="ChannelJoined._load"></a><div id="ChannelJoined._load-def"><a name="L120"></a><tt class="py-lineno">120</tt> <a class="py-toggle" href="#" id="ChannelJoined._load-toggle" onclick="return toggle('ChannelJoined._load');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.ChannelJoined-class.html#_load">_load</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ChannelJoined._load-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ChannelJoined._load-expanded"><a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-84" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-84', 'playerId', 'link-19');">playerId</a></tt><tt class="py-op">,</tt> </tt>
<a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-85" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-85', 'channelId', 'link-28');">channelId</a></tt><tt class="py-op">,</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-86" class="py-name"><a title="lacewing.moo.client.Channel.masterId
lacewing.moo.packetloaders.server.ChannelJoined.masterId
lacewing.moo.packetloaders.server.PlayerLeft.masterId" class="py-name" href="#" onclick="return doclink('link-86', 'masterId', 'link-29');">masterId</a></tt><tt class="py-op">,</tt> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">        <tt class="py-name">playerNameSize</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;IIII'</tt><tt class="py-op">,</tt> <tt id="link-87" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-87', 'data', 'link-11');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-88" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-88', 'playerName', 'link-30');">playerName</a></tt> <tt class="py-op">=</tt> <tt id="link-89" class="py-name"><a title="lacewing.moo.packetloaders.common.unpack_string" class="py-name" href="#" onclick="return doclink('link-89', 'unpack_string', 'link-4');">unpack_string</a></tt><tt class="py-op">(</tt><tt id="link-90" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-90', 'data', 'link-11');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">playerNameSize</tt><tt class="py-op">,</tt> <tt class="py-number">16</tt><tt class="py-op">)</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">        <tt class="py-name">offset</tt> <tt class="py-op">=</tt> <tt class="py-number">16</tt> <tt class="py-op">+</tt> <tt class="py-name">playerNameSize</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">        <tt class="py-name">playerIpSize</tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;I'</tt><tt class="py-op">,</tt> <tt id="link-91" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-91', 'data', 'link-11');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">offset</tt><tt class="py-op">)</tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">        <tt class="py-name">offset</tt> <tt class="py-op">+=</tt> <tt class="py-number">4</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-92" class="py-name"><a title="lacewing.moo.packetloaders.server.ChannelJoined.playerIp" class="py-name" href="#" onclick="return doclink('link-92', 'playerIp', 'link-31');">playerIp</a></tt> <tt class="py-op">=</tt> <tt id="link-93" class="py-name"><a title="lacewing.moo.packetloaders.common.unpack_string" class="py-name" href="#" onclick="return doclink('link-93', 'unpack_string', 'link-4');">unpack_string</a></tt><tt class="py-op">(</tt><tt id="link-94" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-94', 'data', 'link-11');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">playerIpSize</tt><tt class="py-op">,</tt> <tt class="py-name">offset</tt><tt class="py-op">)</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">        <tt class="py-name">offset</tt> <tt class="py-op">+=</tt> <tt class="py-name">playerIpSize</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">        <tt class="py-name">channelSize</tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;I'</tt><tt class="py-op">,</tt> <tt id="link-95" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-95', 'data', 'link-11');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">offset</tt><tt class="py-op">)</tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">        <tt class="py-name">offset</tt> <tt class="py-op">+=</tt> <tt class="py-number">4</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-96" class="py-name"><a title="lacewing.moo.packetloaders.client.JoinChannel.channelName
lacewing.moo.packetloaders.server.ChannelJoined.channelName" class="py-name" href="#" onclick="return doclink('link-96', 'channelName', 'link-83');">channelName</a></tt> <tt class="py-op">=</tt> <tt id="link-97" class="py-name"><a title="lacewing.moo.packetloaders.common.unpack_string" class="py-name" href="#" onclick="return doclink('link-97', 'unpack_string', 'link-4');">unpack_string</a></tt><tt class="py-op">(</tt><tt id="link-98" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-98', 'data', 'link-11');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">channelSize</tt><tt class="py-op">,</tt> <tt class="py-name">offset</tt><tt class="py-op">)</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">        <tt class="py-name">offset</tt> <tt class="py-op">+=</tt> <tt class="py-name">channelSize</tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">offset</tt> </tt>
</div><a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">         </tt>
<a name="ChannelJoined.generate"></a><div id="ChannelJoined.generate-def"><a name="L137"></a><tt class="py-lineno">137</tt> <a class="py-toggle" href="#" id="ChannelJoined.generate-toggle" onclick="return toggle('ChannelJoined.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.ChannelJoined-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ChannelJoined.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ChannelJoined.generate-expanded"><a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">''</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-op">[</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">            <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;IIII'</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-99" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-99', 'playerId', 'link-19');">playerId</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-100" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-100', 'channelId', 'link-28');">channelId</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-101" class="py-name"><a title="lacewing.moo.client.Channel.masterId
lacewing.moo.packetloaders.server.ChannelJoined.masterId
lacewing.moo.packetloaders.server.PlayerLeft.masterId" class="py-name" href="#" onclick="return doclink('link-101', 'masterId', 'link-29');">masterId</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">            <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-102" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-102', 'playerName', 'link-30');">playerName</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-103" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-103', 'playerName', 'link-30');">playerName</a></tt><tt class="py-op">,</tt> <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;I'</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-104" class="py-name"><a title="lacewing.moo.packetloaders.server.ChannelJoined.playerIp" class="py-name" href="#" onclick="return doclink('link-104', 'playerIp', 'link-31');">playerIp</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-105" class="py-name"><a title="lacewing.moo.packetloaders.server.ChannelJoined.playerIp" class="py-name" href="#" onclick="return doclink('link-105', 'playerIp', 'link-31');">playerIp</a></tt><tt class="py-op">,</tt> <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;I'</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-106" class="py-name"><a title="lacewing.moo.packetloaders.client.JoinChannel.channelName
lacewing.moo.packetloaders.server.ChannelJoined.channelName" class="py-name" href="#" onclick="return doclink('link-106', 'channelName', 'link-83');">channelName</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-107" class="py-name"><a title="lacewing.moo.packetloaders.client.JoinChannel.channelName
lacewing.moo.packetloaders.server.ChannelJoined.channelName" class="py-name" href="#" onclick="return doclink('link-107', 'channelName', 'link-83');">channelName</a></tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">        <tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line"> </tt>
<a name="FromChannelMessage"></a><div id="FromChannelMessage-def"><a name="L144"></a><tt class="py-lineno">144</tt> <a class="py-toggle" href="#" id="FromChannelMessage-toggle" onclick="return toggle('FromChannelMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.FromChannelMessage-class.html">FromChannelMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_MooLoader</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ChannelMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ConnectionMixin</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FromChannelMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="FromChannelMessage-expanded"><a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">    <tt id="link-108" class="py-name" targets="Variable lacewing.moo.packetloaders.client.ClientMessage.subchannel=lacewing.moo.packetloaders.client.ClientMessage-class.html#subchannel,Variable lacewing.moo.packetloaders.client.PrivateMessage.subchannel=lacewing.moo.packetloaders.client.PrivateMessage-class.html#subchannel,Variable lacewing.moo.packetloaders.client.ToChannelMessage.subchannel=lacewing.moo.packetloaders.client.ToChannelMessage-class.html#subchannel,Variable lacewing.moo.packetloaders.server.FromChannelMessage.subchannel=lacewing.moo.packetloaders.server.FromChannelMessage-class.html#subchannel"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-108', 'subchannel', 'link-108');">subchannel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">    <tt id="link-109" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-109', 'message', 'link-8');">message</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">    <tt id="link-110" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-110', 'channelId', 'link-28');">channelId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">    <tt id="link-111" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-111', 'playerId', 'link-19');">playerId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">     </tt>
<a name="FromChannelMessage._load"></a><div id="FromChannelMessage._load-def"><a name="L150"></a><tt class="py-lineno">150</tt> <a class="py-toggle" href="#" id="FromChannelMessage._load-toggle" onclick="return toggle('FromChannelMessage._load');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.FromChannelMessage-class.html#_load">_load</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FromChannelMessage._load-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FromChannelMessage._load-expanded"><a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-112" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-112', 'subchannel', 'link-108');">subchannel</a></tt><tt class="py-op">,</tt> </tt>
<a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-113" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-113', 'channelId', 'link-28');">channelId</a></tt><tt class="py-op">,</tt> </tt>
<a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-114" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-114', 'playerId', 'link-19');">playerId</a></tt><tt class="py-op">,</tt> </tt>
<a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">        <tt class="py-name">messageSize</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;HIII'</tt><tt class="py-op">,</tt> <tt id="link-115" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-115', 'data', 'link-11');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line">         </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">        <tt id="link-116" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-116', 'message', 'link-8');">message</a></tt> <tt class="py-op">=</tt> <tt id="link-117" class="py-name"><a title="lacewing.moo.packetloaders.message.Message" class="py-name" href="#" onclick="return doclink('link-117', 'Message', 'link-9');">Message</a></tt><tt class="py-op">(</tt><tt class="py-op">**</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">settings</tt><tt class="py-op">)</tt> </tt>
<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">        <tt id="link-118" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-118', 'message', 'link-8');">message</a></tt><tt class="py-op">.</tt><tt class="py-name">load</tt><tt class="py-op">(</tt><tt id="link-119" class="py-name"><a title="lacewing.moo.packetloaders.common.unpack_string" class="py-name" href="#" onclick="return doclink('link-119', 'unpack_string', 'link-4');">unpack_string</a></tt><tt class="py-op">(</tt><tt id="link-120" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-120', 'data', 'link-11');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">messageSize</tt><tt class="py-op">,</tt> <tt class="py-number">14</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-121" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-121', 'message', 'link-8');">message</a></tt> <tt class="py-op">=</tt> <tt id="link-122" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-122', 'message', 'link-8');">message</a></tt> </tt>
<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">         </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-number">14</tt> <tt class="py-op">+</tt> <tt class="py-name">messageSize</tt> </tt>
</div><a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line">         </tt>
<a name="FromChannelMessage.isServer"></a><div id="FromChannelMessage.isServer-def"><a name="L162"></a><tt class="py-lineno">162</tt> <a class="py-toggle" href="#" id="FromChannelMessage.isServer-toggle" onclick="return toggle('FromChannelMessage.isServer');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.FromChannelMessage-class.html#isServer">isServer</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FromChannelMessage.isServer-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FromChannelMessage.isServer-expanded"><a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-123" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-123', 'channelId', 'link-28');">channelId</a></tt> <tt class="py-op">==</tt> <tt class="py-number">0</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-124" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-124', 'playerId', 'link-19');">playerId</a></tt> <tt class="py-op">==</tt> <tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
</div><a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line">         </tt>
<a name="FromChannelMessage.setServer"></a><div id="FromChannelMessage.setServer-def"><a name="L165"></a><tt class="py-lineno">165</tt> <a class="py-toggle" href="#" id="FromChannelMessage.setServer-toggle" onclick="return toggle('FromChannelMessage.setServer');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.FromChannelMessage-class.html#setServer">setServer</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FromChannelMessage.setServer-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FromChannelMessage.setServer-expanded"><a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-125" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-125', 'channelId', 'link-28');">channelId</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-126" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-126', 'playerId', 'link-19');">playerId</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
</div><a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line">     </tt>
<a name="FromChannelMessage.generate"></a><div id="FromChannelMessage.generate-def"><a name="L169"></a><tt class="py-lineno">169</tt> <a class="py-toggle" href="#" id="FromChannelMessage.generate-toggle" onclick="return toggle('FromChannelMessage.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.server.FromChannelMessage-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FromChannelMessage.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FromChannelMessage.generate-expanded"><a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line">        <tt class="py-name">messageData</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-127" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-127', 'message', 'link-8');">message</a></tt><tt class="py-op">.</tt><tt id="link-128" class="py-name" targets="Method lacewing.moo.packetloaders.client.ChangeName.generate()=lacewing.moo.packetloaders.client.ChangeName-class.html#generate,Method lacewing.moo.packetloaders.client.ClientMessage.generate()=lacewing.moo.packetloaders.client.ClientMessage-class.html#generate,Method lacewing.moo.packetloaders.client.JoinChannel.generate()=lacewing.moo.packetloaders.client.JoinChannel-class.html#generate,Method lacewing.moo.packetloaders.client.LeaveChannel.generate()=lacewing.moo.packetloaders.client.LeaveChannel-class.html#generate,Method lacewing.moo.packetloaders.client.PrivateMessage.generate()=lacewing.moo.packetloaders.client.PrivateMessage-class.html#generate,Method lacewing.moo.packetloaders.client.SetName.generate()=lacewing.moo.packetloaders.client.SetName-class.html#generate,Method lacewing.moo.packetloaders.client.ToChannelMessage.generate()=lacewing.moo.packetloaders.client.ToChannelMessage-class.html#generate,Method lacewing.moo.packetloaders.message.Message.generate()=lacewing.moo.packetloaders.message.Message-class.html#generate,Method lacewing.moo.packetloaders.server.AssignedID.generate()=lacewing.moo.packetloaders.server.AssignedID-class.html#generate,Method lacewing.moo.packetloaders.server.ChannelJoined.generate()=lacewing.moo.packetloaders.server.ChannelJoined-class.html#generate,Method lacewing.moo.packetloaders.server.FromChannelMessage.generate()=lacewing.moo.packetloaders.server.FromChannelMessage-class.html#generate,Method lacewing.moo.packetloaders.server.MOTD.generate()=lacewing.moo.packetloaders.server.MOTD-class.html#generate,Method lacewing.moo.packetloaders.server.PlayerChanged.generate()=lacewing.moo.packetloaders.server.PlayerChanged-class.html#generate,Method lacewing.moo.packetloaders.server.PlayerLeft.generate()=lacewing.moo.packetloaders.server.PlayerLeft-class.html#generate,Method lacewing.packetloaders.client.ChannelMaster.generate()=lacewing.packetloaders.client.ChannelMaster-class.html#generate,Method lacewing.packetloaders.client.Request.generate()=lacewing.packetloaders.client.Request-class.html#generate,Method lacewing.packetloaders.server.ChannelPeer.generate()=lacewing.packetloaders.server.ChannelPeer-class.html#generate,Method lacewing.packetloaders.server.Peer.generate()=lacewing.packetloaders.server.Peer-class.html#generate,Method lacewing.packetloaders.server.Response.generate()=lacewing.packetloaders.server.Response-class.html#generate"><a title="lacewing.moo.packetloaders.client.ChangeName.generate
lacewing.moo.packetloaders.client.ClientMessage.generate
lacewing.moo.packetloaders.client.JoinChannel.generate
lacewing.moo.packetloaders.client.LeaveChannel.generate
lacewing.moo.packetloaders.client.PrivateMessage.generate
lacewing.moo.packetloaders.client.SetName.generate
lacewing.moo.packetloaders.client.ToChannelMessage.generate
lacewing.moo.packetloaders.message.Message.generate
lacewing.moo.packetloaders.server.AssignedID.generate
lacewing.moo.packetloaders.server.ChannelJoined.generate
lacewing.moo.packetloaders.server.FromChannelMessage.generate
lacewing.moo.packetloaders.server.MOTD.generate
lacewing.moo.packetloaders.server.PlayerChanged.generate
lacewing.moo.packetloaders.server.PlayerLeft.generate
lacewing.packetloaders.client.ChannelMaster.generate
lacewing.packetloaders.client.Request.generate
lacewing.packetloaders.server.ChannelPeer.generate
lacewing.packetloaders.server.Peer.generate
lacewing.packetloaders.server.Response.generate" class="py-name" href="#" onclick="return doclink('link-128', 'generate', 'link-128');">generate</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">         </tt>
<a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;HIII'</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-129" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-129', 'subchannel', 'link-108');">subchannel</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-130" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-130', 'channelId', 'link-28');">channelId</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-131" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-131', 'playerId', 'link-19');">playerId</a></tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">messageData</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">messageData</tt> </tt>
</div></div><a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line"> </tt>
<a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line"><tt class="py-name">__all__</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'MOTD'</tt><tt class="py-op">,</tt> <tt class="py-string">'AssignedID'</tt><tt class="py-op">,</tt> <tt class="py-string">'PlayerExists'</tt><tt class="py-op">,</tt> <tt class="py-string">'PlayerJoined'</tt><tt class="py-op">,</tt>  </tt>
<a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line">    <tt class="py-string">'PlayerLeft'</tt><tt class="py-op">,</tt> <tt class="py-string">'PlayerChanged'</tt><tt class="py-op">,</tt> <tt class="py-string">'ChannelJoined'</tt><tt class="py-op">,</tt> <tt class="py-string">'FromChannelMessage'</tt><tt class="py-op">]</tt> </tt>
<a name="L177"></a><tt class="py-lineno">177</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="lacewing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://mp2.dk">Python Lacewing Library</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Thu Dec 22 06:20:00 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
